home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / bash-1.12 / dist / RCS / Makefile,v < prev    next >
Encoding:
Text File  |  1992-12-15  |  3.6 KB  |  140 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.2
  10. date     92.12.15.11.17.42;  author jhh;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     92.12.14.22.42.49;  author jhh;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @kdj
  27. hh
  28. @
  29. text
  30. @# Hey Emacs, this Makefile is in -*- text -*- mode!
  31. #
  32. # Makefile for Bash.
  33. # If your cpp doesn't like -P, just get rid of it (the -P, not cpp).
  34. # If you wish to use Gcc, then just type "make CC=gcc".
  35. # If you wish to use GNU's Make, then change the MAKE define.
  36. # If you don't like the destination, then change DESTDIR.  (This only
  37. # matters if you are typing `make install'.)
  38. # The file that you most likely want to look at is cpp-Makefile.
  39. #
  40. # If you haven't read README, now might be a good time.
  41.  
  42. DESTDIR = /usr/gnu/bin
  43. MAKE    = make
  44. RM      = rm -f
  45. SHELL   = /bin/sh
  46. GAWK     = awk
  47. # GAWK     = gawk
  48.  
  49. CPPNAME = /lib/cpp
  50. CPP     = $(CPPNAME) `$(CPPMAGIC) $(GETCPPSYMS) $(CPPNAME)` -P
  51. # CPP     = $(CC) -E
  52.  
  53. CPP_MAKEFILE = cpp-Makefile
  54.  
  55. CPPFLAGS = $(SYSTEM) $(CPP_DEFINES) -Uultrix -Dsprite
  56. CPP_ARGS = -DCPP_CC="$(CC)"
  57.  
  58. SUPPORTDIR     = ./support/
  59. MKSYSDEFS      = $(SUPPORTDIR)mksysdefs
  60. CPPMAGIC       = $(SUPPORTDIR)cppmagic
  61. CAT_S          = $(SUPPORTDIR)cat-s
  62. GETCPPSYMS     = $(SUPPORTDIR)getcppsyms
  63. GETCPPSYMS_SRC = $(SUPPORTDIR)getcppsyms.c
  64.  
  65. # Here is a command which compresses runs of multiple blank lines to a
  66. # single blank line.  "cat -s" works for BSD systems, but not for USG
  67. # systems.  You can use an awk script if you like.  If you have too
  68. # much trouble with this, just forget it.  It is for making
  69. # bash-Makefile pretty and readable; something that isn't strictly
  70. # necessary.
  71. # SQUASH_BLANKS = cat -s
  72. #
  73. SQUASH_BLANKS = $(GAWK) -f $(CAT_S)
  74.  
  75. all:    .notified bash-Makefile
  76.     $(MAKE) $(MFLAGS) $(MAKEARGS) -f bash-Makefile
  77.  
  78. bash-Makefile: $(CPP_MAKEFILE) Makefile machines.h sysdefs.h config.h
  79.     @@-if [ -f aix-Makefile ]; then \
  80.         echo "cp aix-Makefile tmp-Makefile.c"; \
  81.         cp aix-Makefile tmp-Makefile.c; else \
  82.         echo "cp $(CPP_MAKEFILE) tmp-Makefile.c"; \
  83.         cp $(CPP_MAKEFILE) tmp-Makefile.c; \
  84.       fi
  85.     $(RM) $(GETCPPSYMS)
  86.     $(CC) -o $(GETCPPSYMS) $(GETCPPSYMS_SRC)
  87.     @@/bin/sh -c 'echo $(CPP) $(CPPFLAGS) $(CPP_ARGS) tmp-Makefile.c \| $(SQUASH_BLANKS) \> bash-Makefile'
  88.     @@/bin/sh -c '$(CPP) $(CPPFLAGS) $(CPP_ARGS) tmp-Makefile.c | $(SQUASH_BLANKS) >bash-Makefile'
  89.     rm -f tmp-Makefile.c
  90.  
  91. sysdefs.h: $(MKSYSDEFS)
  92.     $(MKSYSDEFS)
  93.  
  94. # Subsequent lines contain targets that are correctly handled by an
  95. # existing bash-Makefile.
  96.  
  97. install newversion mailable distribution architecture: bash-Makefile
  98.     $(MAKE) $(MFLAGS) $(MAKEARGS) DESTDIR=$(DESTDIR) -f bash-Makefile $@@
  99.  
  100. bash.tar.Z tags documentation clone: bash-Makefile directory-frob
  101.     $(MAKE) $(MFLAGS) $(MAKEARGS) DESTDIR=$(DESTDIR) -f bash-Makefile $@@
  102.  
  103. clean: bash-Makefile directory-frob
  104.     rm -f .notified
  105.     $(MAKE) $(MFLAGS) $(MAKEARGS) DESTDIR=$(DESTDIR) -f bash-Makefile $@@
  106.  
  107. directory-frob:
  108.  
  109. .NOEXPORT:
  110.  
  111. .notified:
  112.     @@echo ""
  113.     @@echo "   You are about to make this version of GNU Bash for"
  114.     @@echo "   this architecture for the first time.  If you haven't"
  115.     @@echo "   yet read the README file, you may want to do so.  If"
  116.     @@echo "   you wish to report a bug in Bash, or in the installation"
  117.     @@echo "   procedure, please mail it to bash-maintainers@@ai.mit.edu,"
  118.     @@echo "   and include:"
  119.     @@echo ""
  120.     @@echo "    * the version number of Bash,"
  121.     @@echo "    * the machine and OS that it is running on,"
  122.     @@echo "    * a description of the bug,"
  123.     @@echo "    * a recipe for recreating the bug reliably,"
  124.     @@echo "    * a fix for the bug if you have one!"
  125.     @@echo ""
  126.     @@touch .notified
  127.     
  128. @
  129.  
  130.  
  131. 1.1
  132. log
  133. @Initial revision
  134. @
  135. text
  136. @d26 1
  137. a26 1
  138. CPPFLAGS = $(SYSTEM) $(CPP_DEFINES)
  139. @
  140.